Skip to content

Zigbee + Matter combined App rework#96

Merged
edmont merged 4 commits into
nrfconnect:combined-matter-zigbeefrom
ArekBalysNordic:combined-rework
Apr 17, 2026
Merged

Zigbee + Matter combined App rework#96
edmont merged 4 commits into
nrfconnect:combined-matter-zigbeefrom
ArekBalysNordic:combined-rework

Conversation

@ArekBalysNordic
Copy link
Copy Markdown
Contributor

No description provided.

@ArekBalysNordic ArekBalysNordic force-pushed the combined-rework branch 5 times, most recently from 5c61577 to 96df761 Compare April 2, 2026 13:29
@edmont
Copy link
Copy Markdown
Collaborator

edmont commented Apr 7, 2026

Just some initial comments about style:

  • Can you avoid replacing tabs by spaces in this PR? It complicates the diff and will introduce problems for cherry-picks. If needed it can be added as a separated PR.
  • Please keep a consistency in the commit titles as it's the norm in this repo by adding some prefix reflecting the area of the changes (like subsys: or manifest:).
  • Remove this comment from commit description as it seems outdated: - Switched to building nrf802154 radio driver from sources until it is not deployed to nrfxlib..

@ArekBalysNordic
Copy link
Copy Markdown
Contributor Author

Just some initial comments about style:

  • Can you avoid replacing tabs by spaces in this PR? It complicates the diff and will introduce problems for cherry-picks. If needed it can be added as a separated PR.
  • Please keep a consistency in the commit titles as it's the norm in this repo by adding some prefix reflecting the area of the changes (like subsys: or manifest:).
  • Remove this comment from commit description as it seems outdated: - Switched to building nrf802154 radio driver from sources until it is not deployed to nrfxlib..

Will try to configure clang-format to meet these requirements.

Zigbee deinit releases all resources and deinitializes
the Zigbee stack.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
@ArekBalysNordic ArekBalysNordic force-pushed the combined-rework branch 4 times, most recently from db9ca27 to 7c5dd25 Compare April 7, 2026 14:09
@ArekBalysNordic
Copy link
Copy Markdown
Contributor Author

Just some initial comments about style:

  • Can you avoid replacing tabs by spaces in this PR? It complicates the diff and will introduce problems for cherry-picks. If needed it can be added as a separated PR.
  • Please keep a consistency in the commit titles as it's the norm in this repo by adding some prefix reflecting the area of the changes (like subsys: or manifest:).
  • Remove this comment from commit description as it seems outdated: - Switched to building nrf802154 radio driver from sources until it is not deployed to nrfxlib..

Thanks, aligned most tabs and spaces, however I guess, we can consider adding .clang-format file to keep everything synchronous. Added all prefixes, and removed outdated description.

Copy link
Copy Markdown
Collaborator

@edmont edmont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, a few more comments.

Also there is a typo in a commit title: combained --> combined.

k_msgq_purge(&zb_app_cb_msgq);
k_poll_signal_reset(&zigbee_sig);
(void)atomic_clear((atomic_t *)&zb_app_cb_process_scheduled);
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to cancel tx_done_ack_work for the CONFIG_NRF_802154_SER_HOST case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. However I guess, it fits better to zigbee_nrf_802154_radio_deinit, right?

Comment thread samples/light_bulb/src/main.cpp Outdated
Comment thread samples/light_bulb/src/main.cpp Outdated
Comment thread samples/light_bulb/src/main.cpp Outdated
Comment thread samples/light_bulb/src/main.cpp Outdated
If nrf802154 callbacks dispatcher is enabled, all zigbee radio
callbacks go through it.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
Comment thread samples/light_bulb/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf Outdated
@ArekBalysNordic
Copy link
Copy Markdown
Contributor Author

@edmont Removed a workaround for crypto, now on ncs v3.3-branch Thread and Zigbee work properly! Tested factory reset, now it works properly NVS is cleared for zigbee. Apart from that, noticed that we cannot initialize buttons both in Matter and Zigbee - it leads to undefined behaviour and race conditions.

Comment thread samples/light_bulb/src/app_task_zigbee.cpp
@ArekBalysNordic ArekBalysNordic force-pushed the combined-rework branch 2 times, most recently from d095fca to b4750b9 Compare April 16, 2026 19:10
Copy link
Copy Markdown
Collaborator

@edmont edmont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename commit title: manifest: switch to sdk-nrf v3.3.0-RC1 --> rc2

- Created two separate app tasks for Matter and Zigbee.
- Combained two protocols in the main.cpp file.
- Rework of configuration to be compliant with Matter.
- Added a variant to sample.yaml.
- Fixed nrf54lm20 configuration.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
- Switched the sdk-nrf revision to v3.3.0-RC2.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
@edmont edmont merged commit c7b7a49 into nrfconnect:combined-matter-zigbee Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants